home *** CD-ROM | disk | FTP | other *** search
- #include <objc/objc.h>
- #include "fooObject.h"
-
- @implementation FooObject
-
- - setFoo:(unsigned int)val
- {
- foo=val;
- return self;
- }
-
- - (unsigned int)getFoo
- {
- return foo;
- }
-
- - read:(TypedStream*)stream
- {
- [super read:stream];
- objc_read_types(stream,"I",&foo);
- return self;
- }
-
- - write:(TypedStream*)stream
- {
- [super write:stream];
- objc_write_types(stream,"I",&foo);
- return self;
- }
-
- @end
-